package com.fare.taluo.core.domain.config.line;

import java.util.Date;
import java.util.List;

import com.dayatang.domain.EntityRepository;

public interface OccupRateEntityRepository extends EntityRepository{
	
	//通过航空公司、起发城市、终点城市、时间 查找
	public List<OccupRateEntity> findOccupRateEntityByCondition(
		String companyId,String lineCode,Date date,int page,int pagesize);
	
	//符合条件查询的总记录数
	public int getTotalOccupRateListByCodition(String companyId,String fromCity,String toCity, Date date);
	
	
	public List<OccupRateEntity> findOccupRateEntityByCondition(String flightinfo, Date flightDay); 
	/**
	 * 根据时间段查询客座率
	 * @param flightinfo
	 * @param beginFlightDay
	 * @param endFlightDay
	 * @return
	 */
	public List<OccupRateEntity> findOccupRateEntityByCondition(String flightinfo, Date beginFlightDay,Date endFlightDay);
	
	
	public List<OccupRateEntity>  findOccupRateEntity(String companyCode,String flightDay);
	
	public List<OccupRateEntity> findOccupRateCondition2(String linkCode, String flightDay);
	
	/**
	 * 航空公司、起发城市、终点城市、时间 查找
	 * @param companyId 
	 * @param formCity
	 * @param toCity
	 * @param date
	 * @param page
	 * @param pagesize
	 * @return
	 */
	public List<OccupRateEntity> findOccupRateByCode(
			String companyId,String formCity,String toCity,Date date,int page,int pagesize);
}
